<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        // math对象 和数学相关的
        console.log(Math.abs(-33));  // 绝对值
        console.log(Math.floor(1.22));  // 1
        console.log(Math.floor(1.999)); // 1
        console.log(Math.ceil(2.999)); // 3
        console.log(Math.ceil(2.2)); // 3
        console.log(Math.pow(2,3)); // 8 平方
        console.log(Math.random());  // 随机值
        console.log(Math.random());
        console.log(Math.random());
    </script>
</head>
<body>

</body>
</html>